package com.whut.v_dataMap.SummaryReport.Part3VO;

import java.util.Objects;

public class RankTablePName4ListVO {
    private Integer fourthId;
    private String pName4;
    private Double averagePoint;

    @Override
    public String toString() {
        return "RankTablePName4ListVO{" +
                "fourthId=" + fourthId +
                ", pName4='" + pName4 + '\'' +
                ", averagePoint=" + averagePoint +
                '}';
    }

    public Double getAveragePoint() {
        return averagePoint;
    }

    public void setAveragePoint(Double averagePoint) {
        this.averagePoint = averagePoint;
    }

    public Integer getFourthId() {
        return fourthId;
    }

    public void setFourthId(Integer fourthId) {
        this.fourthId = fourthId;
    }

    public String getpName4() {
        return pName4;
    }

    public void setpName4(String pName4) {
        this.pName4 = pName4 == null ? null : pName4.trim();
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof RankTablePName4ListVO)) return false;
        RankTablePName4ListVO that = (RankTablePName4ListVO) o;
        return Objects.equals(getFourthId(), that.getFourthId()) && Objects.equals(getpName4(), that.getpName4());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getFourthId(), getpName4());
    }
}
